// +build !oracle

package main

import (
	"github.com/micro-plat/hydra"
)

//bindConf 绑定启动配置， 启动时检查注册中心配置是否存在，不存在则引导用户输入配置参数并自动创建到注册中心
func init() {
	hydra.OnReady(func() {
		if hydra.G.IsDebug() {
			hydra.Conf.API("9090")
			hydra.Conf.Vars().DB().MySQL("db", "root", "rTo0CesHi2018Qx", "192.168.0.36", "hydra")
			// hydra.Conf.Vars().DB().MySQLByConnStr("db", "oms_t:123456@tcp(192.168.0.36)/oms_t?charset=utf8")
			return
		}

		hydra.Conf.API(hydra.ByInstall)
		hydra.Conf.Vars().DB().MySQLByConnStr("db", hydra.ByInstall)
	})

}
